package org.yzh.protocol.hlj;

import io.github.yezhihao.protostar.annotation.Field;

import java.time.LocalDateTime;

/**
 *  附件标识号 消息体 数据格式
 */
public class AppendFileId {

    @Field(length = 30, desc = "终端ID")
    private String deviceId;

    @Field(length = 6, charset = "BCD", desc = "时间(YYMMDDHHMMSS)")
    private LocalDateTime dateTime;

    @Field(length = 1, desc = "序号(同一时间点报警的序号，从0循环累加)")
    private int serialNo;

    @Field(length = 1, desc = "附件数量")
    private int fileTotal;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }

    public int getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(int serialNo) {
        this.serialNo = serialNo;
    }

    public int getFileTotal() {
        return fileTotal;
    }

    public void setFileTotal(int fileTotal) {
        this.fileTotal = fileTotal;
    }
}
